<?php
	if (checkLeaveGroup($_SESSION['username'])) {
		leaveGroup($_SESSION['username']);
		echo "<p>You are have left your Flatshare Group!</p>";
	}
	else {
		echo "<p>You are NOT OK to leave the group! If you are the only Admin in the group, you must make another user Admin before you can leave.</p>";
	}
?>